package com.aiobc.business.personalcenter.service.impl;

import com.aiobc.business.personalcenter.domain.DataCommentLog;
import com.aiobc.business.personalcenter.mapper.DataCommentLogMapper;
import com.aiobc.business.personalcenter.service.DataCommentLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @Author zhangcan
 * @Description: 数据评论
 * @Date: 2021-10-20 9:00
 */
@Service
public class DataCommentLogServiceImpl implements DataCommentLogService {
    @Autowired
    private DataCommentLogMapper dataCommentLogMapper;

    /**
     * @Author zhangcan
     * @Description: 新增数据评论
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int insertDataCommentLog(DataCommentLog dataCommentLog){
        return dataCommentLogMapper.insertDataCommentLog(dataCommentLog);
    }

    /**
     * @Author zhangcan
     * @Description: 修改数据评论
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int updateDataCommentLog(DataCommentLog dataCommentLog)
    {
        return dataCommentLogMapper.updateDataCommentLog(dataCommentLog);
    }
    /**
     * @Author zhangcan
     * @Description: 删除数据评论
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int deleteDataCommentLogById(String logId)
    {
        return dataCommentLogMapper.deleteDataCommentLogById(logId);
    }

    /**
     * @Author zhangcan
     * @Description: 批量删除数据评论
     * @Date: 2021-10-19 9:00
     */
    @Override
    public int deleteDataCommentLogByIds(String []logIds)
    {
        return dataCommentLogMapper.deleteDataCommentLogByIds(logIds);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据评论
     * @Date: 2021-10-19 9:00
     */
    @Override
    public DataCommentLog selectDataCommentLogById(String logId)
    {
        return dataCommentLogMapper.selectDataCommentLogById(logId);
    }

    /**
     * @Author zhangcan
     * @Description: 查询数据评论列表
     * @Date: 2021-10-19 9:00
     */
    @Override
    public List<DataCommentLog> selectDataCommentLogList(DataCommentLog dataCommentLog)
    {
        return dataCommentLogMapper.selectDataCommentLogList(dataCommentLog);
    }

}
